Skip to content

fix: BOOTH.pm 응답코드가 200이 아닌 경우 사이클 스킵하도록 수정#41

Closed
Ogunaru wants to merge 1 commit intomainfrom
develop
Closed

fix: BOOTH.pm 응답코드가 200이 아닌 경우 사이클 스킵하도록 수정#41
Ogunaru wants to merge 1 commit intomainfrom
develop

Conversation

@Ogunaru
Copy link
Member

@Ogunaru Ogunaru commented Dec 8, 2025

No description provided.

@Ogunaru Ogunaru requested a review from Nopied December 8, 2025 22:48
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 881 to 883
if response.status_code != 200:
logger.error(f'BOOTH heartbeat failed: {e}. Skipping this cycle.')
sleep(refresh_interval)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Undefined exception variable in BOOTH heartbeat failure path

When the BOOTH heartbeat returns a non-200 response, the code logs f'BOOTH heartbeat failed: {e}...' even though e is never defined in this branch. Any non-200 reply will therefore raise a NameError and crash the cycle instead of skipping it, defeating the intended error handling.

Useful? React with 👍 / 👎.

Comment on lines 878 to 882
logger.info('Checking BOOTH heartbeat')
response = requests.get("https://booth.pm", timeout=10)

if response.status_code != 200:
logger.error(f'BOOTH heartbeat failed: {e}. Skipping this cycle.')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge BOOTH heartbeat exceptions now terminate the process

The BOOTH heartbeat call is no longer wrapped in a try/except. Any requests exception (e.g., temporary DNS failure or connection timeout) will now propagate and kill the infinite loop, whereas the surrounding log messages and earlier implementation were intended to log the error and skip the cycle. This regression makes the monitor brittle to transient network errors.

Useful? React with 👍 / 👎.

@Ogunaru
Copy link
Member Author

Ogunaru commented Dec 23, 2025

PR Close 처리

@Ogunaru Ogunaru closed this Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant